// components/we-ui/we-stepper-form/index.js
Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    value: {
      type: null,
      value: ''
    },
    title: String,
    required:  Boolean,
    disabled: Boolean,
    step: {
      type: Number,
      value: 1
    },
    min: {
      type: Number,
      value: -99999999
    },
    max: {
      type: Number,
      value: 99999999
    },
  },
  data: {

  },
  methods: {
    onChange(event) {
      this.setData({
        value: event.detail
      })
      this.triggerEvent('change', event.detail)
    }
  }
})
